package jgl.vajra.management.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

public class OrderListBean implements Parcelable {

    public OrderListBean() {
    }

    public String orderId;
    public String useCarTime;
    public String workTime;
    public String name;
    public String title;
    public String amount;
    public int state;
    public String workStatus;


    public int sizeAddressList;
    public String channelText;
    public String addressEnd;
    public List<String> address;

    protected OrderListBean(Parcel in) {
        orderId = in.readString();
        useCarTime = in.readString();
        workTime = in.readString();
        name = in.readString();
        title = in.readString();
        amount = in.readString();
        state = in.readInt();
        workStatus = in.readString();
        sizeAddressList = in.readInt();
        channelText = in.readString();
        addressEnd = in.readString();
        address = in.createStringArrayList();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(orderId);
        dest.writeString(useCarTime);
        dest.writeString(workTime);
        dest.writeString(name);
        dest.writeString(title);
        dest.writeString(amount);
        dest.writeInt(state);
        dest.writeString(workStatus);
        dest.writeInt(sizeAddressList);
        dest.writeString(channelText);
        dest.writeString(addressEnd);
        dest.writeStringList(address);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<OrderListBean> CREATOR = new Creator<OrderListBean>() {
        @Override
        public OrderListBean createFromParcel(Parcel in) {
            return new OrderListBean(in);
        }

        @Override
        public OrderListBean[] newArray(int size) {
            return new OrderListBean[size];
        }
    };
}
